/*
 * @Description: 
 * @Author: 张文韬
 * @Date: 2022-09-06 14:46:31
 * @LastEditTime: 2024-07-11 10:12:58
 * @LastEditors: 张文韬
 * @Reference: 
 */

import { createInput, createSelect } from "@/utils/e-components.tool"

export const editFormRules = {
  name: [
    { required: true, message: '请输入目的地', trigger: 'blur' }
  ]
};
 
const addressTypes = [
  { label: '申根', value: '1' },
  { label: '非申根', value: '2' },
]

export const editFormOptions = [
  createInput('目的地', 'name').setSpan(24).option(),
  createInput('英文', 'egName').setSpan(24).option(),
  createSelect('类型', 'type').setOptions(addressTypes).setProps({ clearable: false }).option(),
]


export const destColumns = [
  {
    label: 'id',
    minWidth: 100,
    prop: 'id'
  },
  {
    label: '目的地',
    minWidth: 200,
    prop: 'name'
  },
  {
    label: '操作',
    fixed: 'right',
    width: 150,
    slotName: 'handleSlot'
  }
]